<%@ page contentType="text/html;charset=UTF-8" %>

<%@ taglib prefix="custom" uri="http://xyz.lisys/taglib/custom" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%--
    struts-tags
    获取property，特殊命名的变量要以#号开头，
    [ parameters | application | session | struts | request | servletRequest | servletResponse ]
    如果标签属性不支持动态表达式，可以使用%{ }
    key-value形式变量：#{'foo':'foovalue', 'bar':'barvalue'}
    https://struts.apache.org/tag-developers/tag-reference.html
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<%-- https://struts.apache.org/tag-developers/ognl --%>
<%--
    context map---|
                  |--application
                  |
                  |--session
                  |
                  |--value stack(root)
                  |
                  |--action (the current action)
                  |
                  |--request
                  |
                  |--parameters
                  |
                  |--attr (searches page, request, session, then application scopes)
parameters
application
session
struts
request
servletRequest
servletResponse

%{} 解析表达式
#{'username':'trillian'} 等效于map put("username","trillian")
--%>
<html>
<head>
    <title>demo</title>
</head>
<body>
<h1>demo</h1>
<custom:hello-struts2/>

<s:hidden />

</body>
</html>
